package com.oracle.application.controller;

import com.oracle.application.entity.Protype;
import com.oracle.application.feign.ProductFeign;
import com.oracle.application.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("")
public class ProtypeController {
    @Autowired
    private ProductFeign productFeign;
    @RequestMapping("/Protype/getAllProtype")
    public R<List<Protype>> getAllProtype(){

        return productFeign.getAllProType();

    }
}
